import request from '@/common/utils/request'
import {
	serv
} from '@/common/utils/config'

// 获取足迹列表
export function getFootpathList(data) {
	return request(serv.order + `/api/goodsViewLog/queryHistoryGoodsByUserCode`, {
		method: `get`,
		data: data
	})
}

// 批量取消收藏
export function removeList(data) {
	return request(serv.order + `/api/favorites_product/deleteList`, {
		method: `post`,
		data: data
	})
}

// 批量加入购物车
export function addListToCart(data) {
	return request(serv.order + `/api/favorites_product/addPruductList`, {
		method: `post`,
		data: data
	})
}

// 单个加入购物车
export function addOneToCart(data) {
	return request(serv.order + `/api/cart/addCart`, {
		method: `post`,
		data: data
		// header: {
		// 	'Content-Type': 'application/x-www-form-urlencoded'
		// }
	})
}
//删除足迹
export function deleteFooterPath(data) {
	return request(serv.order + `/api/goodsViewLog/batch/remove `, {
		method: `post`,
		data: data
	})
}